package com.koron.system.org.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.annocation.FillField;
import com.koron.common.core.business.system.tree.SuperTree;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName UnifyOrgBean
 * @description
 * @Author zhouj
 * @Date 2021/7/8 15:16
 */
@Data
public class UnifyOrgBean extends SuperTree {

    @ApiModelProperty(value = "组织id")
    private String orgId;

    @ApiModelProperty(value = "组织编码")
    private String code;//编码

    @ApiModelProperty(value = "组织姓名")
    private String name;//名称

    @ApiModelProperty(value = "组织短名")
    private String shortName;//名称

    @ApiModelProperty(value = "组织类型")
    private Integer orgKind;//组织类型 1集团2片区4水司8水厂16部门

    @ApiModelProperty(value = "业务类型")
    private Integer businessKind;//业务类型 1原水2自来水4污水8工程

    @ApiModelProperty(value = "上级部门")
    private String parentCode;

    @FillField
    @DateTimeFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "权重")
    private Integer weight;

    @ApiModelProperty(value = "应用id")
    private String appId;

    @ApiModelProperty(value = "是否需要包含父code")
    private boolean needParent = false;

}
